<%@ include file="/include/taglibs.jsp"%>
<%@ page contentType="text/html; charset=UTF-8"%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>我的包裹</title>
<link href="${ctx}/css/menuCommon.css" rel="stylesheet" type="text/css" />
</head>
<body>
	<%@include file="/include/head.jsp"%>
	 <!--页面中部内容-开始-->
	 <div class="common_wraper">
	 	<div class="winTopOuter">
	 		<div class="winTopInner"></div>
	 	</div>
	 	<div class="winContent">
	 		<div class='menuWraper'>
		 		 <div class='leftMenuWraper'>
		 			 <%@include file="../account/menu.jsp" %>
		 		 </div>
		 		 <div class="rightWraper"><!-- 右边的块区域 -->
		 		 <form action="${ctx}/packageinfo/packageinfoAction!initSearchPackageinfo.action"  id="searchOrderForm">
		 		 <input  type="hidden"  name="packageinfo.flowStatus"  value="${packageinfo.flowStatus}"  id="searchKey"/>
		 		  <input  type="hidden"  name="packageinfo.userId"  value="${packageinfo.userId }"/>
		 		 	<div class="myOrderForms">
		 		 		<div class='collectDiv'>
		 		 			<div class="titleImg"></div>
		 		 			<a href="javascript:searchOperate('00')">未处理（${staticMap.A00 }）</a><a href="javascript:searchOperate('01')">处理中（${staticMap.A01 }）</a><a href="javascript:searchOperate('02')">已发货（${staticMap.A02 }）</a><a href="javascript:searchOperate('03')">确认收货（${staticMap.A03 }）</a><a href="javascript:searchOperate('04')">信息有误（${staticMap.A04 }）</a><a href="javascript:searchOperate('05')">已撤销（${staticMap.A05 }）</a><a href="javascript:searchOperate('06')">海关退包（${staticMap.A06}）</a>
		 		 		</div>
		 		 		<div class="searchDiv">
		 		 			<div class="search">
		 		 			</div>
		 		 		</div>
		 		 		<div class="queryResultDiv">
		 		 		<table style="width:100%;" cellpadding="0px" cellspacing="0px">
		 		 				<tr class="head">
		 		 					<td align="center" width="15%">收货人</td>
		 		 					<td align="center" width="15%">寄送方式</td>
		 		 					<td align="center" width="10%">物流单号</td>
		 		 					<td align="center" width="10%">包裹重量（克）</td>
		 		 					<td align="center" width="10%">预计发送</td>
		 		 					<td align="center" width="10%">实际发送</td>
		 		 					<td align="center" width="10%">
		 		 					<select  name="packageinfo.flowStatus"  onchange="doSearchPackage()" >
		 		 					<option >所有状态</option>
		 		 					<option value="00"   <c:if test="${packageinfo.flowStatus eq '00' }">selected</c:if>> 未处理</option>
		 		 					<option value="01" <c:if test="${packageinfo.flowStatus eq '01' }">selected</c:if>>处理中</option>
		 		 					<option value="02" <c:if test="${packageinfo.flowStatus eq '02' }">selected</c:if>>已发货</option>
		 		 					<option value="03" <c:if test="${packageinfo.flowStatus eq '03' }">selected</c:if>>确认收货</option>
		 		 					<option value="04" <c:if test="${packageinfo.flowStatus eq '04' }">selected</c:if>>信息有误</option>
		 		 					<option value="05" <c:if test="${packageinfo.flowStatus eq '05' }">selected</c:if>>已撤销</option>
		 		 					<option value="06" <c:if test="${packageinfo.flowStatus eq '06' }">selected</c:if>>海关退包</option>
		 		 					</select>
		 		 					</td>
		 		 					<td align="center" width="10%">服务费折扣</td>
		 		 					<td align="center" width="10%">操作</td>
		 		 				</tr>
		 		 		<c:if test="${not empty packageinfoList}">
		 		 				<c:forEach items="${packageinfoList}" var="data">
		 		 				<tr class="trData">
		 		 					<td align="center">${ data.first_name}&nbsp;${ data.last_name}</td>
		 		 					<td align="center">
		 		 					<c:if test="${ data.post_type eq '01'}">陆运</c:if>
		 		 					<c:if test="${ data.post_type eq '02'}">海运</c:if>
		 		 					<c:if test="${ data.post_type eq '03'}">空运</c:if>
		 		 					</td>
		 		 					<td align="center">${ data.freight_code}</td>
		 		 					<td align="center">${ data.weight}</td>
		 		 					<td align="center">${ data.predict_date}</td>
		 		 					<td align="center">${ data.actual_date}</td>
		 		 					<td align="center">
		 		 					<c:choose>
		 		 					<c:when test="${data.flowStatus eq '00' }">未处理</c:when>
		 		 					<c:when test="${data.flowStatus eq '01' }">处理中</c:when>
		 		 					<c:when test="${data.flowStatus eq '02' }">已发货</c:when>
		 		 					<c:when test="${data.flowStatus eq '03' }">确认收货</c:when>
		 		 					<c:when test="${data.flowStatus eq '04' }">信息有误</c:when>
		 		 					<c:when test="${data.flowStatus eq '05' }">已撤销</c:when>
		 		 					<c:when test="${data.flowStatus eq '06' }">海关退包</c:when>
		 		 					</c:choose>
		 		 					</td>
		 		 					<td align="center">${ data.discount_amount}</td>
		 		 					<td align="center"></td>
		 		 				</tr>
		 		 				</c:forEach>
		 		 			<div class="pageOut"><div class="pageInner"><< 1 2 >></div></div>
		 		 			</c:if>
		 		 			</table>
		 		 			<c:if test="${ empty orderforminfoList}">
		 		 			<div class="searchIsNull">没有符合条件的包裹，请尝试其他条件</div>
		 		 			</c:if>
		 		 		</div>
			 		</div>
			 		</form>
		 		 </div>
	 		 </div>
	 	</div>
	 	<div class="winBottomOuter">
	 		<div class="winBottomInner"></div>
	 	</div>
	 </div>
	 <!--页面中部内容-结束-->
	<%@include file="/include/footer.jsp" %>
</body>
<script type="text/javascript">
function showOpreate(){
	$("#operateOrder").toggle();
}
function searchOperate(str){
	if(str!='ALL'){
	$("#searchKey").val(str);
	}else{
		$("#searchKey").val("");
	}
	$("#searchOrderForm").submit();
}
function doSearchPackage(){
	$("#searchOrderForm").submit();
}
</script>
</html>